import express from 'express';
import router from './apirouter/router.js';
//实例化express对象
const app=express();
//当接口为/api时，应用router路由规则
app.use('/api',router);
app.listen(80,()=>{
    console.log("web server is running at http://127.0.0.1:80");
});
